package edu.towson.greenteam.table;
import junit.framework.Assert;
import org.junit.Test;


public class TableTest 
{
	@Test
	public void tableTest() {
		Table tableInstance = new Table(100, 3);
		Assert.assertEquals(3, tableInstance.getNumSeats());
		tableInstance.setPin(123);
		Assert.assertEquals(123, tableInstance.getPin());
	}
	
	@Test
	public void testTableCreation() {
		Table tbl = new Table(0, 4);
		Assert.assertNotNull("Object is not null", tbl);
	}
	
	@Test
	public void testGetTable() {
		Table tbl = new Table(1, 4);
		Assert.assertEquals(tbl, tbl.getTable());
	}
	
	@Test
	public void testOccupied() {
		Table tbl = new Table(2, 4);
		tbl.setOccupied(true);
		Assert.assertEquals(true, tbl.isOccupied());
	}
	
	@Test
	public void testPin() {
		Table tbl = new Table(3, 4);
		tbl.setPin(5432);
		Assert.assertEquals(5432, tbl.getPin());
	}
	
	
}
